package com.example.s.Activity.setting;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.s.Activity.BaseActivity;
import com.example.s.R;

public class AccountAndSecurity extends BaseActivity {
    private ImageView back;
    private RelativeLayout phone;
    private ImageView arrow1;
    private TextView photoNum;
    private RelativeLayout loginPassword;
    private RelativeLayout identify;
    private ImageView arrow3;
    private TextView identifyInfo;
    private RelativeLayout logoff;


    private void initView() {

        back = (ImageView) findViewById(R.id.back);
        phone = (RelativeLayout) findViewById(R.id.phone);
        arrow1 = (ImageView) findViewById(R.id.arrow1);
        photoNum = (TextView) findViewById(R.id.photoNum);
        loginPassword = (RelativeLayout) findViewById(R.id.loginPassword);
        identify = (RelativeLayout) findViewById(R.id.identify);
        arrow3 = (ImageView) findViewById(R.id.arrow3);
        identifyInfo = (TextView) findViewById(R.id.identifyInfo);
        logoff = (RelativeLayout) findViewById(R.id.logoff);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_account_and_security);
        initView();

        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        phone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(AccountAndSecurity.this,IdentifyPhone.class));
            }
        });

        identify.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(AccountAndSecurity.this,IdentifyAuthentication.class));
            }
        });
    }


}
